package com.wzs.easytobuy.mapper;

import com.wzs.easytobuy.model.Like;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface LikeMapper {
    int deleteByPrimaryKey(String id);

    int insert(Like record);

    int insertSelective(Like record);

    Like selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Like record);

    int updateByPrimaryKey(Like record);

    int selectAllCount(String userId);

    List<Map<String, Object>> likePageList(String userId, int skipCount, int pageSize);

    Like selectLikeByFidAndUid(String formatId, String userId);
}